// import { stringify } from 'qs';
import request from '@/utils/request';
// 公积金办理
// 列表接口
export async function accufundList(params) {
  return request(`/esApi/accuSerHdl/pageListAccuSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 运行
export async function accufundOsList(params) {
  return request(`/osApi/accuSerHdl/pageAccuSerHdlList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 派单信息接口
export async function accufundSendInfor(params) {
  return request(`/esApi/accuSerHdl/getEmpInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function accufundAdd(params) {
  return request(`/esApi/accuSerHdl/insertAccuSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function accufundDetail(params) {
  return request(`/esApi/accuSerHdl/queryAccuSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function accufundUpdateDetail(params) {
  return request(`/esApi/accuSerHdl/getAccuSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function accufundUpdate(params) {
  return request(`/esApi/accuSerHdl/updateAccuSerHdl`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
// 开始办理--查看
export async function accufundToDealDetial(params) {
  return request(`/osApi/accuSerHdl/getAccuSerHdl`, {
    method: 'POST',
    body: params,
  });
}
// 开始办理
export async function accufundToDeal(params) {
  return request(`/osApi/accuSerHdl/startHandleAccuSerHdl`, {
    method: 'POST',
    body: params,
  });
}
// 办理完成
export async function accufundToDealComplete(params) {
  return request(`/osApi/accuSerHdl/signSuccessAccuSerHdl`, {
    method: 'POST',
    body: params,
  });
}

// 取消办理
export async function accufundCancelToDeal(params) {
  return request(`/esApi/accuSerHdl/ancellationAccuSerHdl`, {
    method: 'POST',
    body: params,
  });
}
// 新增返款信息
export async function addRefundInfor(params) {
  return request(`/osApi/accuSerHdl/insertAccuRefundInfo`, {
    method: 'POST',
    body: params,
  });
}

export async function accufundHdlRemark(params) {
  return request(`/esApi/accuSerRemark/queryAccuRemarkList`, {
    method: 'POST',
    body: params,
  });
}
export async function accufundaddHdlRemark(params) {
  return request(`/esApi/accuSerRemark/insertAccuRemark`, {
    method: 'POST',
    body: params,
  });
}
export async function accufundAddCheck(params) {
  return request(`/esApi/accuSerHdl/insertAccuSerHdlAddCheck`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function accufundsubmitToRun(params) {
  return request(`/esApi/accuSerHdl/updateSubmitToRun`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function addContactInfor(params) {
  return request(`/esApi/insSerHdl/queryContRcrdList`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function accuGrants(params) {
  return request(`/esApi/accuSerHdl/updateOriginalIssue`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

// 标记问题人员
export async function signPro(params) {
  return request(`/osApi/problem/accu/signProbFlag`, {
    method: 'POST',
    body: params,
  });
}
// 获取问题人员列表
export async function getProList(params) {
  return request(`/osApi/problem/accu/pageList`, {
    method: 'POST',
    body: params,
  });
}

// 问题人员添加问题反馈
export async function insertProbFdbk(params) {
  return request(`/osApi/problem/accu/insertProbFdbk`, {
    method: 'POST',
    body: params,
  });
}

export async function getProBaseList(params) {
  return request(`/osApi/problem/accu/get`, {
    method: 'POST',
    body: params,
  });
}

// 反馈并取消问题人员标记
export async function cancelProbFlag(params) {
  return request(`/osApi/problem/accu/cancelProbFlag`, {
    method: 'POST',
    body: params,
  });
}
export async function getEmpNameList(params) {
  return request(`/esApi/accuSerHdl/getEmpList`, {
    method: 'POST',
    body: params,
  });
}
export async function originCircle(params) {
  return request(`/esApi/accuSerHdl/insertOrigInalRemark`, {
    method: 'POST',
    body: params,
  });
}
export async function checkAccuInfor(params) {
  return request(`/esApi/accuSerHdl/checkAccuSendPd`, {
    method: 'POST',
    body: params,
  });
}
export async function getRefundInfor(params) {
  return request(`/osApi/accuSerHdl/queryAccuRefundInfo`, {
    method: 'POST',
    body: params,
  });
}

export async function uploadFileBatch(params) {
  return request('/esApi/accuSerHdl/accuImport', {
    method: 'POST',
    body: params,
  });
}
export async function uploadFileModify(params) {
  return request('/osApi/accuSerHdl/accuRefundInfoImport', {
    method: 'POST',
    body: params,
  });
}
export async function uploadFileGrant(params) {
  return request('/esApi/accuSerHdl/accuHdlBatchIssue', {
    method: 'POST',
    body: params,
  });
}
